# +----------------------------------------------------------------------
# | ChatWork智能聊天办公系统
# +----------------------------------------------------------------------
# | 软件声明: 本系统并非自由软件,未经授权任何形式的商业使用均属非法。
# | 版权保护: 任何企业和个人不允许对程序代码以任何形式任何目的复制/分发。
# | 授权要求: 如有商业使用需求,请务必先与版权所有者取得联系并获得正式授权。
# +----------------------------------------------------------------------
# | Author: ChatWork Team <2474369941@qq.com>
# +----------------------------------------------------------------------
from fastapi import Query
from pydantic import BaseModel, Field


class RobotInstructSearchIn(BaseModel):
    """ 指令搜索参数 """
    page_no: int = Query(default=1, gt=0, description="当前页码")
    page_size: int = Query(default=15, gt=0, le=200, description="每页条数")
    robot_id: int = Query(..., gt=0, description="智能体ID")


"""--------------- Separator ---------------"""


class RobotInstructListVo(BaseModel):
    """ 指令列表VO """
    id: int = Field(description="ID")
    keyword: str = Field(description="关键词值")
    content: str = Field(description="答复内容")
    create_time: str = Field(description="创建时间")
    update_time: str = Field(description="更新时间")

    class Config:
        json_schema_extra = {
            "example": {
                "id": 1,
                "keyword": "人工客服",
                "content": "联系QQ",
                "create_time": "2025-05-08 10:58:31",
                "update_time": "2025-05-08 10:58:31"
            }
        }
